package sveta.applogic1;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

import sveta.applogic.NavigationHelper;
public class NavigationHelper1 extends DriverBasedHelper implements NavigationHelper {
	private String baseUrl;
	

	public NavigationHelper1(ApplicationManager1 manager) {
	    super(manager.getWebDriver());
	    this.baseUrl = manager.getBaseUrl();
	  }
	  
	  @Override
	  public void openMainPage() {
	   
  	    driver.get(baseUrl+ "/php4dvd/");
  	 
	  }

	  @Override
	  public void openRelativeUrl(String url) {
	    driver.get(baseUrl + url);
	  }
	  
	  @Override
	  public void gotoUserProfilePage() {
	    
	    openRelativeUrl("?go=profile");
	  }

	  @Override
	  public void gotoUserManagementPage() {
	    
	    openRelativeUrl("?go=users");
	  }

	
 }
